const tologinState = function () {
  return new Promise((resolve, reject) => {
    if (su.cook.getcookie("token") && su.cook.getcookie("token") != "") {
      resolve(true);
    } else {
      this.$msgbox("请先登录", null, {
        showClose: true,
        closeOnClickModal: true,
        center: true,
      }).catch(err => {});
    }
  });
};
export default tologinState;
